<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<div class="row">
    <div class="span4">
        <legend>Submission</legend>
        <table class="table">
            <tr>
                <td>Title</td>
                <td><s:property value="conferenceItemSubmission.title" /></td>
            </tr>
            <tr>
                <td>Description</td>
                <td><s:property value="conferenceItemSubmission.description" /></td>
            </tr>
            <tr>
                <td>Submission Type</td>
                <td><s:property value="conferenceItemSubmission.submissionType" /></td>
            </tr>
            <tr>
                <td>Topic</td>
                <td><s:property value="conferenceItemSubmission.topic" /></td>
            </tr>
            <tr>
                <td>Presentation Type</td>
                <td><s:property value="conferenceItemSubmission.presentationType" /></td>
            </tr>
            <tr>
                <td>Keywords</td>
                <td><s:property value="conferenceItemSubmission.keywords" /></td>
            </tr>
            <tr>
                <td>Status</td>
                <td><s:property value="conferenceItemSubmission.status" /></td>
            </tr>            
        </table>    
    </div>    
    <div class="span4">
        <h3>Other Authors</h3>
        <table class="table-striped table">
            <tr>
                <th>Name</th>
                <th>Email</th>
            </tr>
            
            <s:iterator value="authors" var="author">
               <tr>
                   <td><s:property value="#author.firstName" />&nbsp;<s:property value="#author.lastName" /></td> 
                   <td><s:property value="#author.email" /></td> 
               </tr>              
            </s:iterator>   
        </table>
        <h3>Add an Author</h3>
        
        <s:form cssClass="form-horizontal" action="Submission/addAuthor" method="POST">
            <div class="control-group">
              <label class="control-label" for="tiles_author_email">Author Email</label>
              <div class="controls">
                 <s:textfield name="author.email" />      
              </div>
            </div>   
            
                 <s:submit cssClass="btn pull-right" value="Add Author" /> 
        </s:form>
    </div>    
          <!-- Events --> 
 
    <div class="span4"> 
       <h3>Attached Files</h3>
       <table class="table-striped table">
            <tr>
                <th>File Name</th>
                <th>Description</th>
            </tr>
            
            <s:iterator value="files" var="file">
               <tr>
                   <td><s:property value="#file.filename" /></td> 
                   <td><s:property value="#file.description" /></td> 
               </tr>              
            </s:iterator>   
        </table>
        <h3>Attach a File</h3>
        
        <s:form cssClass="form-horizontal" action="Submission/addFile" method="POST" enctype="multipart/form-data">
            <div class="control-group">
              <label class="control-label" for="tiles_file_description">Upload</label>
              <div class="controls">
                 <s:file name="file.physicalPath" />  
              </div>
            </div>   
            <div class="control-group">
              <label class="control-label" for="tiles_file_description">File Description</label>
              <div class="controls">
                 <s:textfield name="file.description" />      
              </div>
            </div>   
            
                 <s:submit cssClass="btn pull-right" value="Attach File" /> 
        </s:form>
    </div>
    
</div>      
            <a href='<s:url action="Submission/index" />'>Back to index</a> 